import QtQuick

Rectangle {
    id: imgEditMenu
    width: 150
    height: 200
    visible: true
    clip: true

    signal imgEditModeClicked(var index)

    property var editMode: [
    "Blend", "BrightnessContrast", "ColorOverlay", "Colorize", "ConicalGradient",
    "Desaturate", "DirectionalBlur", "Displace", "DropShadow", "FastBlur",
    "GammaAdjust", "GaussianBlur", "Glow", "HueSaturation", "InnerShadow",
    "LevelAdjust", "LinearGradient", "MaskedBlur", "OpacityMask", "RadialBlur",
    "RadialGradient", "RectangularGlow", "RecursiveBlur", "ThresholdMask", "ZoomBlur"
    ]

    ListView {
        id: imgEditMenuList
        anchors.fill: parent
        clip: true
        spacing: 4

        model: editMode
        delegate: TextBtn {
            width: 150
            height: 30
            tbText: editMode[index]
            tbFontSize: 14
            tbBackColor: "#2e2f30"
            tbColor: "#f0f0f0"
            tbHoverColor: "#888888"

            onClicked: {
                imgEditModeClicked(index)
            }
        }
    }
}
